<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
        // 函数的2中声明方式
        // 1. 通过 function 关键字声明
        function play() {
            console.log('今晚吃鸡');
        }
        play();

        // 2. 匿名函数(把函数赋值给了变量)
        let eat = function (menu) {
            console.log('今晚吃' + menu);
        };

        eat('红烧鱼');

        // 3. 箭头函数
        let run = () => {
            console.log('就这么跑来跑去');
        }

        run();

    </script>
</head>

<body>

</body>

</html>